Rails.application.routes.draw do


  resources :wlfwzsxxes

  resources :wlesjyxxes

  resources :wljyxxes

  resources :wlzpqzxxes

  resources :qqqjbxxes

  resources :hhs

  root :to => 'data_types#home'


  resources :triggers

  resources :keywords

  resources :ybzcs

  resources :data_types do 
      get :home, :on => :collection
      get :tops, :on => :collection
      get :subs, :on => :member
      get :search, :on => :collection
      get :import, :on => :collection
      get :search_results, :on => :collection
  end

  devise_for :users

    #  #
  resources :users do 
    post :create_new, :on => :collection
  end

  resources :sheets do 
    post :import ,:on => :member
  end

  
  # #
  # resources :projects do
  # end
  # #
  # resources :groups do 
  #   get :group_folders, :on => :member
  # end

  # resources :members do 
  # end
  # resources :contacts, :only=>[:index]
  
  # resources :group_folders do 
  #   #get :user_folders , :on => :member
  # end

  
  # resources :user_folders do 
  #   get :docs,      :on => :member

  #   resources :folders, :only=>[:new]
  # end

  # resources :folders do 
  #   get :search,       :on => :collection
  #   get :docs,        :on => :member
  #   get :folders,   :on => :member
  # end

  # resources :folder_shares do 
    
  # end

  # resources :shares, :only => [:index,:new,:create,:destroy] do 
  #   get :to_me,     :on => :collection
  #   get :by_me,     :on => :collection
  # end

   # get 'folders/new_by_folder' =>   'folders#new_by_folder', as: :new_by_folder
   # get 'folders/new_by_user_folder' => 'folders#new_by_user_folder', as: :new_by_user_folder
 
  # resources :docs do
  #     get :search,    :on => :collection
  #     get :shares,    :on => :member
  #     get :applies,   :on => :member
  #     get :preview,   :on => :member
  #     get :download , :on => :member
  #   end

  # resources :multiple_docs, :only => [:new,:create] do 
  #   delete :destroy, :on => :collection
  #   post :share,     :on => :collection
  #   post :do_share, :on => :collection
  # end

 

  # resources :applies do 
  #   get :reply,   :on => :member
  #   put :execute_reply, :on => :member
  # end

 

  # resources :mydocs do
  #   get :own,   :on => :collection 
  #   get :share, :on => :collection
  #   get :apply, :on => :collection
  # end

  #resources :tests

  #
  #put 'switch_project/:project_id' => 'home#switch_project',:as => 'switch_project' 
  #


  resources :notes ,:only => [:index, :show] do 
    
  end
  #
  resource :help,  controller: 'help', :only => [:show]
  resource :profile,  controller: 'profile', :only => [:show, :edit, :update]
  resource :current_project, controller: 'current_project', :only => [:show]
  resource :current_member, controller: 'current_member', :only => [:show, :edit,:update, :destroy]
  resource :password, controller: 'password' ,:only => [:edit,:update]
  resource :system, controller: 'system', :only => [:show,:update]


  # The priority is based upon order of creation: first created -> highest priority.
  # See how all your routes lay out with "rake routes".

  # You can have the root of your site routed with "root"
  # root 'welcome#index'

  # Example of regular route:
  #   get 'products/:id' => 'catalog#view'

  # Example of named route that can be invoked with purchase_url(id: product.id)
  #   get 'products/:id/purchase' => 'catalog#purchase', as: :purchase

  # Example resource route (maps HTTP verbs to controller actions automatically):
  #   resources :products

  # Example resource route with options:
  #   resources :products do
  #     member do
  #       get 'short'
  #       post 'toggle'
  #     end
  #
  #     collection do
  #       get 'sold'
  #     end
  #   end

  # Example resource route with sub-resources:
  #   resources :products do
  #     resources :comments, :sales
  #     resource :seller
  #   end

  # Example resource route with more complex sub-resources:
  #   resources :products do
  #     resources :comments
  #     resources :sales do
  #       get 'recent', on: :collection
  #     end
  #   end

  # Example resource route with concerns:
  #   concern :toggleable do
  #     post 'toggle'
  #   end
  #   resources :posts, concerns: :toggleable
  #   resources :photos, concerns: :toggleable

  # Example resource route within a namespace:
  #   namespace :admin do
  #     # Directs /admin/products/* to Admin::ProductsController
  #     # (app/controllers/admin/products_controller.rb)
  #     resources :products
  #   end
end
